package com.kd.d5000acquire.util;

import java.util.Objects;

/**
 * @program: monitorSystem-GRPC
 * @description:
 * @author: wangzeng
 * @create: 2020-04-09 11:10
 **/
public class RequiredFieldValidator {
    /**
     * @Description: 不为空不为null不为字符串"null"
     * @Param: [param]
     * @return: boolean
     * @Author: wangzeng
     * @Date: 2020/4/9
     */
    public static boolean NotNullAndNotEmptyAndNotEqNull(Object param) {
        if (Objects.nonNull(param) && (param + "").trim().length() > 0 && !"null".equals((param+"").trim()) && !"undefined".equals(param))
            return true;
        return false;
    }
}
